package com.qiyadeng.thread;

public class CounterThread extends Thread {

	protected Counter counter;
	
	public CounterThread(Counter counter){
		this.counter = counter;
	}
	
	public void run(){
		for(int i=0;i<10;i++){
			counter.add(i);
		}
		System.out.println("release...");

	}
}
